url = 'https://www.acwing.com/problem/content/4879/'

print(int(input())//2520)

